package com.lhkj.ct.meta.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lhkj.ct.base.model.dto.PageQuery;
import com.lhkj.ct.base.model.Option;
import com.lhkj.ct.base.mybatis.extension.service.IPageService;
import com.lhkj.ct.base.mybatis.extension.service.IService;
import com.lhkj.ct.meta.admin.model.entity.TblPost;

import java.util.List;

/**
 * <p>
 * 岗位表 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-09-08
 */
public interface SysPostService extends IService<TblPost>, IPageService<TblPost> {

    /**
     * 岗位列表 - 分页查询
     * @param post
     * @param pageQuery
     */
    IPage<TblPost> selectPostPage(TblPost post, PageQuery pageQuery);

    /**
     * 岗位下拉列表
     */
    List<Option<String>> listOptions(String organId);


    boolean checkPostExistUser(String postId);
}
